<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

// 登陆
Route::any('login',['uses'=>'LoginController@login']);
Route::post('loginOperation',['uses'=>'LoginController@operation']);





Route::group(['middleware' => 'admin.login'], function() {
//退出
    Route::any('logOut',['uses'=>'LoginController@logOut']);

    Route::any('defaultContent',['uses'=>'DataStatisticsController@index']);
    Route::any('index_v1',['uses'=>'DataStatisticsController@index_v1']);
    Route::any('totalIncome',['uses'=>'DataStatisticsController@totalIncome']);//总营业额
    Route::any('classification',['uses'=>'DataStatisticsController@classification']);//分类统计收入
    Route::any('reference',['uses'=>'DataStatisticsController@reference']);//推荐总人数
    Route::any('classificationPe',['uses'=>'DataStatisticsController@classificationPe']);//分类统计人数


    Route::any('B_list',['uses'=>'RecommendedUsersController@B_list']);//B端用户列表

    Route::any('C_list',['uses'=>'RecommendedUsersController@C_list']);//C端用户列表

    Route::any('B_deal',['uses'=>'DealController@B_deal']);//B端交易列表
    Route::any('C_deal',['uses'=>'DealController@C_deal']);//C端交易列表

    Route::any('b_deal_details',['uses'=>'DealController@b_deal_details']);//B端交易详情
    Route::any('c_deal_details',['uses'=>'DealController@c_deal_details']);//C端交易详情

});

